package com.suning.sawp.po.assistant;


import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;

import org.springframework.data.annotation.Id;

import com.google.gson.annotations.Expose;

/**
 * 〈一句话功能简述〉<br>
 * 〈功能详细描述〉
 * 客户端版本管理 临时凑合用用，IM废弃，后面需要重新考虑
 * @author 13060506
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
@Entity(name = "VERSION_MANAGE")
public class ClientVersionManage implements Serializable {

    /**
     */
    private static final long serialVersionUID = -482861680032994455L;

    private Long id;

    @Expose
    private String switchName;

    @Expose
    private String switchTitle;

    @Expose
    private String switchDetail;

    /**
     * 最新版本号
     */
    @Expose
    private String switchValue;

    /**
     * 强制版本号
     */
    @Expose
    private String fourceUpdateValue;

    /**
     * 差分版本号
     */
    @Expose
    private String diffUpdateValue;
    
    /**
     * 差分地址
     */
    @Expose
    private String diffUrl;

    @Expose
    private String switchUrl;

    private Timestamp createTime; // 创建时间

    private Timestamp updateTime; // 修改时间

    @Id
    @Column(name = "ID")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "SWITCH_NAME")
    public String getSwitchName() {
        return switchName;
    }

    public void setSwitchName(String switchName) {
        this.switchName = switchName;
    }

    @Column(name = "SWITCH_TITLE")
    public String getSwitchTitle() {
        return switchTitle;
    }

    public void setSwitchTitle(String switchTitle) {
        this.switchTitle = switchTitle;
    }

    @Column(name = "SWITCH_DETAIL")
    public String getSwitchDetail() {
        return switchDetail;
    }

    public void setSwitchDetail(String switchDetail) {
        this.switchDetail = switchDetail;
    }

    @Column(name = "SWITCH_VALUE")
    public String getSwitchValue() {
        return switchValue;
    }

    public void setSwitchValue(String switchValue) {
        this.switchValue = switchValue;
    }

    @Column(name = "FOURCE_UPDATE_VALUE")
    public String getFourceUpdateValue() {
        return fourceUpdateValue;
    }

    public void setFourceUpdateValue(String fourceUpdateValue) {
        this.fourceUpdateValue = fourceUpdateValue;
    }

    public String getDiffUpdateValue() {
        return diffUpdateValue;
    }

    public void setDiffUpdateValue(String diffUpdateValue) {
        this.diffUpdateValue = diffUpdateValue;
    }

    @Column(name = "CREATE_TIME")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Column(name = "UPDATE_TIME")
    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Column(name = "SWITCH_URL")
    public String getSwitchUrl() {
        return switchUrl;
    }

    public void setSwitchUrl(String switchUrl) {
        this.switchUrl = switchUrl;
    }

    public String getDiffUrl() {
        return diffUrl;
    }

    public void setDiffUrl(String diffUrl) {
        this.diffUrl = diffUrl;
    }

    @Override
    public String toString() {
        return "ClientVersionManage [id=" + id + ", switchName=" + switchName + ", switchTitle=" + switchTitle
                + ", switchDetail=" + switchDetail + ", switchValue=" + switchValue + ", fourceUpdateValue="
                + fourceUpdateValue + ", diffUpdateValue=" + diffUpdateValue + ", diffUrl=" + diffUrl + ", switchUrl="
                + switchUrl + ", createTime=" + createTime + ", updateTime=" + updateTime + "]";
    }
    
}
